package org.dromara.canteen.domain.bo;

import org.dromara.canteen.domain.CanteenFood;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 食材管理业务对象 canteen_food
 *
 * @author Gjb
 * @date 2025-07-28
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = CanteenFood.class, reverseConvertGenerate = false)
public class CanteenFoodBo extends BaseEntity {

    /**
     * 食材id
     */
    @NotNull(message = "食材id不能为空", groups = { EditGroup.class })
    private Long foodId;

    /**
     * 食材名称
     */
    @NotBlank(message = "食材名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String foodName;

    /**
     * 采购日期
     */
    @NotNull(message = "采购日期不能为空", groups = { AddGroup.class, EditGroup.class })
    private String purchaseDate;

    /**
     * 采购数量
     */
//    @NotNull(message = "采购数量不能为空", groups = { AddGroup.class, EditGroup.class })
//    private Long purchaseQuantity;

    /**
     * 单位
     */
    @NotBlank(message = "单位不能为空", groups = { AddGroup.class, EditGroup.class })
    private String unit;

    /**
     * 预采购
     */
    @NotNull(message = "预采购不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long prePurchaseQuantity;

    /**
     * 采购净重
     */
    @NotNull(message = "采购净重不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long purchaseNetWeight;

    /**
     * 采购毛重
     */
    private Long purchaseGrossWeight;

    /**
     * 校验员
     */
    private String checkOperator;

    /**
     * 校区id
     */
    private Long schoolCampusId;

    /**
     * 备注
     */
    private String remark;

    private String tenantId;


}
